package com.zc.entity;

public class User {
	private Integer id;//
	private String userName;//
	private String password;//
	private String gender;//
	private String birth;//
	private String newAddr;//现住地
	private String oldAddr;//曾住地
	private String bio;//个性签名
	private String site;//个人网站
	private String tripprefer;//旅行偏好
	private String email;//邮箱
	private String phone;//手机号
	private String img;
	public User() {
		super();
		// TODO Auto-generated constructor stub
	}
	
	

	public String getImg() {
		return img;
	}



	public void setImg(String img) {
		this.img = img;
	}



	public User(Integer id, String userName, String password, String gender, String birth, String newAddr,
			String oldAddr, String bio, String site, String tripprefer, String email, String phone, String img) {
		super();
		this.id = id;
		this.userName = userName;
		this.password = password;
		this.gender = gender;
		this.birth = birth;
		this.newAddr = newAddr;
		this.oldAddr = oldAddr;
		this.bio = bio;
		this.site = site;
		this.tripprefer = tripprefer;
		this.email = email;
		this.phone = phone;
		this.img = img;
	}



	@Override
	public String toString() {
		return "User [id=" + id + ", userName=" + userName + ", password=" + password + ", gender=" + gender
				+ ", birth=" + birth + ", newAddr=" + newAddr + ", oldAddr=" + oldAddr + ", bio=" + bio + ", site="
				+ site + ", tripprefer=" + tripprefer + ", email=" + email + ", phone=" + phone + ", img=" + img + "]";
	}

	@Override
	public boolean equals(Object obj) {
		// TODO Auto-generated method stub
		User user=(User) obj;
		return this.userName.equals(user.getUserName());
	}
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public String getUserName() {
		return userName;
	}
	public void setUserName(String userName) {
		this.userName = userName;
	}
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	public String getGender() {
		return gender;
	}
	public void setGender(String gender) {
		this.gender = gender;
	}
	public String getBirth() {
		return birth;
	}
	public void setBirth(String birth) {
		this.birth = birth;
	}
	public String getNewAddr() {
		return newAddr;
	}
	public void setNewAddr(String newAddr) {
		this.newAddr = newAddr;
	}
	public String getOldAddr() {
		return oldAddr;
	}
	public void setOldAddr(String oldAddr) {
		this.oldAddr = oldAddr;
	}
	public String getBio() {
		return bio;
	}
	public void setBio(String bio) {
		this.bio = bio;
	}
	public String getSite() {
		return site;
	}
	public void setSite(String site) {
		this.site = site;
	}
	public String getTripprefer() {
		return tripprefer;
	}
	public void setTripprefer(String tripprefer) {
		this.tripprefer = tripprefer;
	}
	public String getEmail() {
		return email;
	}
	public void setEmail(String email) {
		this.email = email;
	}
	public String getPhone() {
		return phone;
	}
	public void setPhone(String phone) {
		this.phone = phone;
	}
	
}
